EXTRA_CFLAGS += -O1
ARCH:=arm64
CROSS_COMPILE := /home/fht/work/sdk/rk3399q/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
KSRC:=~/work/sdk/rk3399q/kernel

MODULE_NAME=mpu6050_driver
mpu6050_driver-objs := mpu6050.o
obj-y += $(MODULE_NAME).o

#all:modules

#modules:
#	$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules

#.PHONY: modules clean

#clean:
#	$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) clean

